package com.stackoverflow

class Usuario {

	String nome

	String email
	
	String username
		
	String password
	
	static hasMany = [postagens : Postagem, votos : Voto, favoritos : Favorito]
	
	static constraints = {
		
		nome nullable: false, blank: false, minSize: 6
		email nullable: false, blank: false, unique: true, email: true, minSize: 6
		username nullable: false, blank: false, unique: true, size: 6..24
		password nullabel: false, blank: false
	}
}
